import React, { FC } from 'react'
import { Typography,Input } from 'antd'
import { QuestionInputPropsType, QuestionInputDefaultProps } from './interface.ts'

const { Paragraph,Title } = Typography
const QuestionInput:FC<QuestionInputPropsType> = (props:QuestionInputPropsType)=>{

    const { title, placeholder } = {...QuestionInputDefaultProps,...props}
    return (<div>
        {/* <Paragraph>{title}</Paragraph> 加粗效果不明显*/}
        <Title level={4}>{title}</Title>
        <div>
            <Input placeholder={placeholder}></Input>
        </div>
    </div>
    )
}

export default QuestionInput